package com.eshop.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("订单实体类")
public class Order {
    @ApiModelProperty(value = "订单id")
    private Integer id;

    @ApiModelProperty(value = "商品id")
//        @JsonProperty("gId")
    private Integer gId;

    @ApiModelProperty(value = "商品图片url")
//        @JsonProperty("gImgUrl")
    private String gImgUrl;

    @ApiModelProperty(value = "顾客id")
//        @JsonProperty("uId")
    private Integer uId;

    @ApiModelProperty(value = "顾客名称")
//        @JsonProperty("yName")
    private String uName;

    @ApiModelProperty(value = "联系地址")
//        @JsonProperty("uAddress")
    private String uAddress;

    @ApiModelProperty(value = "联系电话")
//        @JsonProperty("uPhoneNum")
    private String uPhoneNum;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @ApiModelProperty(value = "订单创建日期")
    private Date oCreationDate;

    @ApiModelProperty(value = "订单备注")
//        @JsonProperty("oStatus")
    private String oStatus;

    @ApiModelProperty(value = "订单交易状态",example = "0")
//        @JsonProperty("oIsFinished")
    private Integer oIsFinished;
}
